import request from '@/utils/request'

// 查询SIM卡号列表
export function listSim(query) {
  return request({
    url: '/basic/sim/list',
    method: 'get',
    params: query
  })
}

// 查询SIM卡号详细
export function getSim(msisdn) {
  return request({
    url: '/basic/sim/' + msisdn,
    method: 'get'
  })
}

// 新增SIM卡号
export function addSim(data) {
  return request({
    url: '/basic/sim',
    method: 'post',
    data: data
  })
}

// 修改SIM卡号
export function updateSim(data) {
  return request({
    url: '/basic/sim',
    method: 'put',
    data: data
  })
}

// 删除SIM卡号
export function delSim(msisdn) {
  return request({
    url: '/basic/sim/' + msisdn,
    method: 'delete'
  })
}
